#ifndef MAINMEMORY_
#define MAINMEMORY_

#include <stdio.h>
#include <stdlib.h>
#include "confFile.h"
#include "mmu.h"
#include "prm.h"
#include "readers_writers.h"
char* mainMemory;
int hitCounter;
int faultCounter;
int isMonitorMode;


char* mmGetPage(int pAddress);
void mmSetPage(int pAddress, char* page);
void initMainMemory();
char readByte(int pid, int vAddr);
char * readBytes(int pid, int vAddr, int amount );
void writeByte(int pid, int vAddr, char toWrite );
int writeBytes(int pid, int vAddr, int amount, char* toWrite );
void printMM();
void killMM();



#endif /*MAINMEMORY_*/
